package com.huaxin.hxcloud.frendcircles;

import com.huaxin.common.frendcircle.bean.CommentItem;
import com.huaxin.common.frendcircle.bean.User;

import java.io.Serializable;
import java.util.List;


public class CircleItem implements Serializable {


    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private String id;//
    private String content;
    private String createTime;
    private List<CommentItem> comments;
    private User user;
    private int parentId;
    private boolean isLike;

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public List<CommentItem> getComments() {
        return comments;
    }

    public void setComments(List<CommentItem> comments) {
        this.comments = comments;
    }
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public boolean hasComment() {
        if (comments != null && comments.size() > 0) {
            return true;
        }
        return false;
    }
}
